<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <link th:href="@{/static/bootstrap/css/bootstrap.css}" rel="stylesheet" type="text/css"/>
    <script th:src="@{/static/bootstrap/js/bootstrap.js}"></script>
    <script th:src="@{/static/bootstrap/js/jquery-3.5.1.min.js}"></script>
    <title>第一个HTML页面</title>

</head>
<body>
<div id="div1"><h2>使用 jQuery AJAX 修改文本内容</h2></div>
<button>获取其他内容</button>
<form name="f" action="" method="post">
    <br/>
    用户名:
    <input type="text" name="username" placeholder="name"><br/>
    密码:
    <input type="password" name="password" placeholder="password"><br/>
    <input name="submit" type="submit" value="提交">
</form>
<script>
    $(() => {
        $("button").click(function () {
            $.get("https://www.baidu.com/s?ie=UTF-8&wd=springboot%20%E9%9D%99%E6%80%81%E6%96%87%E4%BB%B6",
                function (v, e) {
                    console.log(v, e)
                }
            );
        });
    })
</script>


</body>
</html>